import service from ".";



//发送短信
export function toSendMessage(phoneNumber:string){
    return service({
        url:"/user/send",
        method:"GET",
        params:{
            //用户电话号码
            phone:phoneNumber
        }
    })
}
//登入短信验证
export function toCheckLogin(userPhone:string,userCode:string){
    return service({
        url:"/user/checkLogin",
        method:"POST",
        data:{
            //用户电话号码
            phoneNumber:userPhone,
            //用户输入验证码
            code:userCode
        }
    })
}